#include "msg.pb.h"
#include <iostream>
#include <string>
#include <stdio.h>
using namespace  std;
int main()
{
    im::helloworld hello;
    hello.set_id(12);
    hello.set_name("hello");
    hello.set_age(34);
    int len =  hello.ByteSize();
    char *buf = new char[len];
    hello.SerializeToArray(buf , len);
    printf(" data is %s " , buf);

}
